package com.smart.modules.genealogy.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.system.common.base.BaseEntity;

/**
 * 人员事件对象 person_event
 */

public class PersonEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 人员编号 */
    private Long personId;

    /** 事件时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date eventTime;

    /** 事件类型 */

    private String eventType;

    /** 事件描述 */

    private String eventDesc;

    /** 事件附件 */

    private String eventAttachment;

    private List<String> eventAttachmentList;

    private String subitemName;

    public String getSubitemName() {
        return subitemName;
    }

    public void setSubitemName(String subitemName) {
        this.subitemName = subitemName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<String> getEventAttachmentList() {
        return eventAttachmentList;
    }

    public void setEventAttachmentList(List<String> eventAttachmentList) {
        this.eventAttachmentList = eventAttachmentList;
    }

    /** 逻辑删除标识(1:已删除;0:未删除) */
    @TableLogic
    private Long deleted;

    public void setPersonId(Long personId)
    {
        this.personId = personId;
    }

    public Long getPersonId()
    {
        return personId;
    }
    public void setEventTime(Date eventTime)
    {
        this.eventTime = eventTime;
    }

    public Date getEventTime()
    {
        return eventTime;
    }
    public void setEventType(String eventType)
    {
        this.eventType = eventType;
    }

    public String getEventType()
    {
        return eventType;
    }
    public void setEventDesc(String eventDesc)
    {
        this.eventDesc = eventDesc;
    }

    public String getEventDesc()
    {
        return eventDesc;
    }
    public void setEventAttachment(String eventAttachment)
    {
        this.eventAttachment = eventAttachment;
    }

    public String getEventAttachment()
    {
        return eventAttachment;
    }
    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("personId", getPersonId())
                .append("eventTime", getEventTime())
                .append("eventType", getEventType())
                .append("eventDesc", getEventDesc())
                .append("eventAttachment", getEventAttachment())
                .append("deleted", getDeleted())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
